package com.example.springbootdemo2.service.impl;

import com.example.springbootdemo2.mapper.db2.RoleMapper;
import com.example.springbootdemo2.pojo.db2.Role;
import com.example.springbootdemo2.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class RoleServiceImpl implements RoleService {

    @Autowired
    private RoleMapper roleMapper;

    @Override
    public List<Role> getAllUser() {
        return roleMapper.getAllUser();
    }
}
